let fs = require('fs');
let buf = '';

process.stdin.on('readable', function() {
    let chunk = process.stdin.read();
    if (chunk) buf += chunk.toString();
});

process.stdin.on('end', function() {
    let v = buf.split("\n").map((x)=>{return parseInt(x);});
    for (let x of v) {
        if (x === 0) {
            break;
        }
        let tmp = "";
        for (let i = 1; i <= x; ++i) tmp += `${i} `;
        console.log(tmp);
    }
});